<style>
.mix {padding:0px 5px;}
</style>
		<div class="ui-portlet">
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li class="active">提议列表</li>
			</ol>
		</div>
       
       {{if $_REQUEST['model'] && $_REQUEST['data_id']}}
       	<?php $m = $_REQUEST['model']; $d = $_REQUEST['data_id']; ?>
       	<portlet model="$m" cache="no" portlet="body" limit="1" fields="*" conditions="id=$d" list_tpl="inner">
       		<h3><a target="_blank" href="/wx_activities/view/{{$item['id']}}">{{$item['name']}}</a></h3>
       		<p>{{$item['summary']}}</p>
       	</portlet>
       {{/if}}
<hr>
        <div class="mb10">
       	<a class="btn btn-primary" href="{{$this->Html->url(array('action'=>'add'))}}"><i class="fa fa-file-o"></i> 新增提议</a>
       	<a class="btn btn-default" href="/wx_activities/edit/{{$item['id']}}"><i class="fa fa-edit"></i> 编辑活动</a>
       	<a class="btn btn-default" href="/wx_activities/view/{{$item['id']}}"><i class="fa fa-eye"></i> 预览活动</a>

       	<a class="btn btn-default pull-right" href="/wx_activities/mine"><i class="fa fa-reply"></i> 返回活动列表</a>
       </div>
      
       <div class="ui-portlet">
	       <div class="row clearfix ui-portlet-list" id="storefront-list">
	       {{loop $datalist $item}}
	       	<div class="col-md-4 mix">
	       		<div class="appmsg">
		       		<div class="appmsg_content">
		       		<h4><a href="{{$this->Html->url('/qas/view/'.$item['Qa']['id'])}}" target="_blank">{{$item['Qa']['name']}}</a> <small style="white-space: pre;">（点赞数：{{$item['Qa']['praise_nums']}}）</small></h4>
		       		{{if $item['Qa']['coverimg']}}
		       		<div class="cover">{{$this->Html->image($item['Qa']['coverimg'])}}</div>
		       		{{/if}}
		       				       		
		       		</div>
		       		<div class="appmsg_opr clearfix">
		       			{{$this->Html->link('<i data-toggle="tooltip" data-placement="top" title="'.__('Edit').'" class="fa fa-edit"></i>', array('controller'=>'qas','action' => 'edit', $item['Qa']['id']),array('class'=>'col-xs-6 opr-edit','escape'=>false))}}
		       			
		       			
		       			<a href="javascript:void(0)" data-url="{{$this->Html->url('/qas/delete/'.$item['Qa']['id'])}}" class="col-xs-6 delete-pop" data-placement="bottom" data-content="确定删除此提议？"><i data-toggle="tooltip" data-placement="top" 
		       			 title="{{__('Delete')}}" class="fa fa-trash"></i></a>
		       			 
		       			 <!-- {{$this->Html->link('', array('controller'=>'wx_msgs','action' => 'delete', $item['Qa']['id']),array('class'=>'col-xs-6','escape'=>false))}}
		       			  -->
		       		</div>
	       		</div>
	       	</div>
	  		{{/loop}}
	    	</div>
	    	<div>{{$page_navi}}</div>
    	</div>